<?php if(isset($_SESSION)): ?>
	<div id="nav">
		<ul>
			<?php if(isset($_SESSION)): ?>
				<li><a class="header" href="/runningrecords/index.php/main/home" title="">Me</a>
					<ul>
						<li><a class="main" href="/runningrecords/index.php/main/home" title="">My Stats</a></li>
						<li><a class="main" href="/runningrecords/index.php/main/files" title="">My Files</a></li>
						<li><a class="main" href="/runningrecords/index.php/upload" title="">Upload</a></li>
					</ul>
				</li>
			<?php else: ?>
				<li><a class="header" href="/runningrecords/" title="">Home</a></li>
			<?php endif; ?>
			
			<li><a class="header" href="/runningrecords/index.php/listing/list_runs" title="">Runs</a>
				<ul>
					<li><a class="main" href="/runningrecords/index.php/record/addrun" title="">Add a run</a></li>
					<li><a class="main" href="/runningrecords/index.php/listing/list_runs" title="">List of Runs</a></li>
				</ul>
			</li>
		 
			<li><a class="header" href="/runningrecords/index.php/listing/listroutes" title="">Routes</a>
				<ul>
					<li><a class="main" href="/runningrecords/index.php/record/addroute" title="">Add a route</a></li>
					<li><a class="main" href="/runningrecords/index.php/listing/listroutes" title="">List of Routes</a></li>
				</ul>
			</li>
			
				<li><a class="header" href="/runningrecords/index.php/main/logout" title="">Logout</a></li>
			
		</ul>
	</div>
	<?php endif; ?>
	<div id="core">